Efficient Snap Rounding with Integer Arithmetic

نویسندگان

  • Binay K. Bhattacharya
  • Jeff Sember
چکیده

In this paper we present a slightly modified definition of snap rounding, and provide two efficient algorithms that perform this rounding. The first algorithm takes n line segments as input and generates the set of snapped segments in O(|I| + Σc is(c) log n + |I∗ m|), where |I| is the complexity of the unrounded arrangement I, is(c) is the number of segments that have an intersection or endpoint in pixel column c, and I∗ m is the multiset of snapped segment fragments. The second algorithm generates the rounded arrangement of segments in O(|I| + Σc is(c) log n + |I∗| log n), where |I∗| is the complexity of the rounded arrangement I∗. Both use simple integer arithmetic to compute the rounded arrangement by sweeping a strip of unit width through the arrangement, are robust, and are practical to implement. They improve upon existing algorithms, since existing running times either include a logarithmic factor in |I|, (i.e., |I| log n), or depend upon the number of segments interacting within a particular hot pixel (is(h) and ed(h) [7], or |h| [3]), whereas ours are linear in |I| and depend upon the number of segments interacting in an entire hot column (is(c)), which is a much coarser partition of the plane.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

An intersection-sensitive algorithm for snap rounding

Snap rounding is a method for converting arbitrary-precision arrangements of segments into fixed-precision representation. We present an algorithm for snap rounding with running time O((n + I) log n), where I is the number of intersections between the input segments. In the worst case, our algorithm is an order of magnitude more efficient than the best previously known algorithms. We also propo...

متن کامل

Robust Geometric Computing and Optimal Visibility Coverage

1 2 Preface This book presents work in two of the most popular areas of geometric computation: Robust Geometric Computing and Optimal Visibility Coverage. Both areas have been extensively researched in recent years and attracted the attention of many researchers and developers in both the academic and the industrial worlds. The work we present here aims to contribute to this effort by providing...

متن کامل

Extending the Power of Snap Rounding Variants

Snap Rounding (SR for short) is a method for converting arbitrary-precision arrangements of line segments into a fixed-precision representation. In the previous years two variants of SR were presented: Iterated Snap Rounding (ISR) and Iterated Snap Rounding with Bounded Drift (ISRBD). Their goal was to eliminate an undesirable property that SR possesses. Prior to their appearances, the capabili...

متن کامل

Relational Analysis of Floating-Point Arithmetic

A set of abstract operations is given that allows the uniform analysis of integer and floating point arithmetic in the abstract domain of convex polyhedra. We show how to implement rounding faithfully and show that the modelling of rounding is necessary even for the analysis of integer variables. Different rounding modes occurring in floating point implementations are discussed and their implem...

متن کامل

An Efficient Implementation of Floating Point Multiplier using Verilog

To represent very large or small values, large range is required as the integer representation is no longer appropriate. These values can be represented using the IEEE754 standard based floating point representation. Floating point multiplication is a most widely used operation in DSP/Math processors, robots, air traffic controller, digital computers. Because of its vast areas of application, t...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2007